package net.vmiranda.traindroid.activities;

import net.vmiranda.traindroid.R;
import net.vmiranda.traindroid.activities.buses.BusesActivity;
import net.vmiranda.traindroid.activities.rutas.RutasActivity;
import net.vmiranda.traindroid.business.service.EstacionService;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class TraindroidActivity extends GenericActivity {


	EstacionService estacionService;
	
	public TraindroidActivity(){
		estacionService = EstacionService.getInstance();
		
	}
	
   
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.home);   
        setListeners();
		try {
			
			
			
			
		} catch (Exception  e) {
			

		}
    }

	public void setListeners() {
		Button btnRutas = (Button) findViewById(R.id.buttonRenfe);		
		btnRutas.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {	
				Log.e("Clickingg","buttonRutas clicked");
				Intent i = new Intent(TraindroidActivity.this, RutasActivity.class);
				startActivity(i);
			}		
		});
		Button btnBus = (Button) findViewById(R.id.buttonEMT);
		btnBus.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View arg0) {
				Intent i = new Intent(TraindroidActivity.this,BusesActivity.class);
				startActivity(i);
				
			}
		});
	}
}